Optimal. Leaf size=178 \[ \frac {64 a^3 (5 A+7 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {16 a^2 (5 A+7 B) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{105 d \sqrt {\sec (c+d x)}}+\frac {2 a (5 A+7 B) \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A \sin (c+d x) (a \sec (c+d x)+a)^{5/2}}{7 d \sec ^{\frac {5}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.32, antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {4013, 3809, 3804} \[ \frac {64 a^3 (5 A+7 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {16 a^2 (5 A+7 B) \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{105 d \sqrt {\sec (c+d x)}}+\frac {2 a (5 A+7 B) \sin (c+d x) (a \sec (c+d x)+a)^{3/2}}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A \sin (c+d x) (a \sec (c+d x)+a)^{5/2}}{7 d \sec ^{\frac {5}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3804
Rule 3809
Rule 4013
Rubi steps
\begin {align*} \int \frac {(a+a \sec (c+d x))^{5/2} (A+B \sec (c+d x))}{\sec ^{\frac {7}{2}}(c+d x)} \, dx &=\frac {2 A (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {1}{7} (5 A+7 B) \int \frac {(a+a \sec (c+d x))^{5/2}}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a (5 A+7 B) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {1}{35} (8 a (5 A+7 B)) \int \frac {(a+a \sec (c+d x))^{3/2}}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {16 a^2 (5 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{105 d \sqrt {\sec (c+d x)}}+\frac {2 a (5 A+7 B) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}+\frac {1}{105} \left (32 a^2 (5 A+7 B)\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {64 a^3 (5 A+7 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}+\frac {16 a^2 (5 A+7 B) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{105 d \sqrt {\sec (c+d x)}}+\frac {2 a (5 A+7 B) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A (a+a \sec (c+d x))^{5/2} \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.57, size = 91, normalized size = 0.51 \[ \frac {2 a^3 \sin (c+d x) \left ((230 A+301 B) \sec ^3(c+d x)+(115 A+98 B) \sec ^2(c+d x)+3 (20 A+7 B) \sec (c+d x)+15 A\right )}{105 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 120, normalized size = 0.67 \[ \frac {2 \, {\left (15 \, A a^{2} \cos \left (d x + c\right )^{4} + 3 \, {\left (20 \, A + 7 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + {\left (115 \, A + 98 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + {\left (230 \, A + 301 \, B\right )} a^{2} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right ) + d\right )} \sqrt {\cos \left (d x + c\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}{\sec \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 2.61, size = 121, normalized size = 0.68 \[ -\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (15 A \left (\cos ^{3}\left (d x +c \right )\right )+60 A \left (\cos ^{2}\left (d x +c \right )\right )+21 B \left (\cos ^{2}\left (d x +c \right )\right )+115 A \cos \left (d x +c \right )+98 B \cos \left (d x +c \right )+230 A +301 B \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\cos ^{4}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}} a^{2}}{105 d \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.39, size = 385, normalized size = 2.16 \[ \frac {5 \, \sqrt {2} {\left (315 \, a^{2} \cos \left (\frac {6}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 77 \, a^{2} \cos \left (\frac {4}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 21 \, a^{2} \cos \left (\frac {2}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) - 315 \, a^{2} \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) \sin \left (\frac {6}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) - 77 \, a^{2} \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) \sin \left (\frac {4}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) - 21 \, a^{2} \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) \sin \left (\frac {2}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) + 6 \, a^{2} \sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ) + 21 \, a^{2} \sin \left (\frac {5}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) + 77 \, a^{2} \sin \left (\frac {3}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right ) + 315 \, a^{2} \sin \left (\frac {1}{7} \, \arctan \left (\sin \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right ), \cos \left (\frac {7}{2} \, d x + \frac {7}{2} \, c\right )\right )\right )\right )} A \sqrt {a} + 28 \, {\left (3 \, \sqrt {2} a^{2} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 25 \, \sqrt {2} a^{2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 150 \, \sqrt {2} a^{2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} B \sqrt {a}}{840 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.35, size = 133, normalized size = 0.75 \[ \frac {a^2\,\cos \left (c+d\,x\right )\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,\sqrt {\frac {a\,\left (\cos \left (c+d\,x\right )+1\right )}{\cos \left (c+d\,x\right )}}\,\left (1960\,A\,\sin \left (c+d\,x\right )+2450\,B\,\sin \left (c+d\,x\right )+490\,A\,\sin \left (2\,c+2\,d\,x\right )+120\,A\,\sin \left (3\,c+3\,d\,x\right )+15\,A\,\sin \left (4\,c+4\,d\,x\right )+392\,B\,\sin \left (2\,c+2\,d\,x\right )+42\,B\,\sin \left (3\,c+3\,d\,x\right )\right )}{420\,d\,\left (\cos \left (c+d\,x\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________